#include <iostream>
#include <stdio.h>
using namespace std;

int main(int argc, char* argv[], char* env[])
{  
   int i = 0;
   cout << "命令行参数：" << endl;
   for (; argv[i]; i++)
   {
       printf("argv[%d]: %s\n", i, argv[i]);
   }

   cout << "环境变量：" << endl;
   i = 0;
   for (; env[i]; i++)
   {
        printf("env[%d]: %s\n", i, env[i]);
   }
    cout << "hello C++" << endl;

    return 0;
}
